package com.jzo2o.customer.controller.worker;


import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.model.dto.response.WorkerCertificationAuditResDTO;
import com.jzo2o.customer.model.dto.response.WorkerCertificationResDTO;
import com.jzo2o.customer.service.IWorkerCertificationAuditService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * <p>
 * 服务人员认证信息审核表 前端控制器
 * </p>
 *
 * @author xuchun
 * @since 2024-08-12
 */
@Api(tags = "服务端 - 服务人员认证信息审核接口")
@RestController
@RequestMapping("/worker/worker-certification-audit")
public class WorkerCertificationAuditController {

    @Resource
    private IWorkerCertificationAuditService workerCertificationAuditService;

    @ApiOperation("服务人员提交审核")
    @PostMapping
    public void submitAudit(@RequestBody WorkerCertificationAuditAddReqDTO dto){
        workerCertificationAuditService.submitAudit(dto);
    }

    @ApiOperation("查询最新的驳回原因")
    @GetMapping("rejectReason")
    public Map<String,String> getRejectReason(){
        return workerCertificationAuditService.getRejectReason();
    }

/*    @ApiOperation("审核服务人员认证分页查询")
    @GetMapping("/page")
    public PageResult<WorkerCertificationAuditResDTO> queryPage(WorkerCertificationAuditPageQueryReqDTO pageDTO) {
        return workerCertificationAuditService.queryPage(pageDTO);
    }*/


}
